package com.shsh.safemanage.model;

public class Department2 {
	private Long id;
	private Long department1ID;
	private String department2Name;
	private boolean isEquip;
	private Long equipID;
	private boolean isManageGroup;
	private Long manageGroupID;
	private boolean isKeshi;

	public boolean isEquip() {
		return isEquip;
	}

	public void setEquip(boolean isEquip) {
		this.isEquip = isEquip;
	}

	public boolean isManageGroup() {
		return isManageGroup;
	}

	public void setManageGroup(boolean isManageGroup) {
		this.isManageGroup = isManageGroup;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDepartment1ID() {
		return department1ID;
	}

	public void setDepartment1ID(Long department1id) {
		department1ID = department1id;
	}

	public String getDepartment2Name() {
		return department2Name;
	}

	public void setDepartment2Name(String department2Name) {
		this.department2Name = department2Name;
	}

	public Long getEquipID() {
		return equipID;
	}

	public void setEquipID(Long equipID) {
		this.equipID = equipID;
	}

	public Long getManageGroupID() {
		return manageGroupID;
	}

	public void setManageGroupID(Long manageGroupID) {
		this.manageGroupID = manageGroupID;
	}

	public boolean isKeshi() {
		return isKeshi;
	}

	public void setKeshi(boolean isKeshi) {
		this.isKeshi = isKeshi;
	}
	
	public int hashCode() {
		return this.id.intValue();
	}
	
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}
		if (!(o instanceof Department2)) {
			return false;
		}
		
		Department2 depart2 = (Department2) o;
		return depart2.getId().equals(this.id);
	}
}
